package dev.ece.suit.loader.models.obj;

public class ObjMeshValue {

	private int start;
	
	private int end;
	
	private int materialIndex = - 1;

	public int getMaterialIndex() {
		return materialIndex;
	}

	public void setMaterialIndex(int materialIndex) {
		this.materialIndex = materialIndex;
	}

	public int[] toIndice() {
		int[] indice = new int[end - start];
		int index = 0;
		for(int i=start; i<end; i++) {
			indice[index ++] = i; 
		}
		return indice;
	}
	
	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getEnd() {
		return end;
	}

	public void setEnd(int end) {
		this.end = end;
	}
	
}
